home *** CD-ROM | disk | FTP | other *** search
/ Minami 78 / MINAMI78.iso / Extra / winamp53.exe / $R0 / Winamp Modern / scripts / display.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2005-09-15  |  8KB  |  255 lines

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global ConfigAttribute ConfigAttribute17;
  6. Global ConfigAttribute ConfigAttribute18;
  7. Global ConfigAttribute ConfigAttribute19;
  8. Global ConfigAttribute ConfigAttribute20;
  9. Global ConfigAttribute ConfigAttribute21;
  10. Global ConfigAttribute ConfigAttribute22;
  11. Global ConfigAttribute ConfigAttribute23;
  12. Global ConfigAttribute ConfigAttribute24;
  13. Global ConfigAttribute ConfigAttribute25;
  14. Global ConfigAttribute ConfigAttribute26;
  15. Global ConfigAttribute ConfigAttribute27;
  16. Global ConfigAttribute ConfigAttribute28;
  17. Global ConfigAttribute ConfigAttribute29;
  18. Global ConfigAttribute ConfigAttribute30;
  19. Global ConfigAttribute ConfigAttribute31;
  20. Global ConfigAttribute ConfigAttribute32;
  21. Global ConfigAttribute ConfigAttribute33;
  22. Global ConfigAttribute ConfigAttribute34;
  23. Global ConfigAttribute ConfigAttribute35;
  24. Global ConfigAttribute ConfigAttribute36;
  25. Global ConfigAttribute ConfigAttribute37;
  26. Global ConfigAttribute ConfigAttribute38;
  27. Global ConfigAttribute ConfigAttribute39;
  28. Global ConfigAttribute ConfigAttribute40;
  29. Global ConfigAttribute ConfigAttribute41;
  30. Global ConfigAttribute ConfigAttribute42;
  31. Global ConfigAttribute ConfigAttribute43;
  32. Global Group Group116;
  33. Global ToggleButton ToggleButton117;
  34. Global ToggleButton ToggleButton118;
  35. Global ToggleButton ToggleButton119;
  36. Global ToggleButton ToggleButton120;
  37. Global Timer Timer121;
  38. Global Text Text122;
  39. Global Slider Slider123;
  40.  
  41. Function func242();
  42. Function func2907();
  43.  
  44. func242()
  45. {
  46. ConfigAttribute ConfigAttribute75;
  47. ConfigItem ConfigItem69;
  48. ConfigAttribute ConfigAttribute77;
  49. ConfigItem ConfigItem55;
  50. ConfigItem ConfigItem46;
  51. ConfigAttribute ConfigAttribute79;
  52. ConfigItem ConfigItem67;
  53. ConfigItem ConfigItem58;
  54. ConfigAttribute ConfigAttribute74;
  55. ConfigItem ConfigItem49;
  56. ConfigAttribute ConfigAttribute73;
  57. ConfigAttribute ConfigAttribute78;
  58. ConfigItem ConfigItem61;
  59. ConfigAttribute ConfigAttribute72;
  60. ConfigAttribute ConfigAttribute84;
  61. ConfigItem ConfigItem71;
  62. ConfigItem ConfigItem64;
  63. ConfigItem ConfigItem52;
  64. ConfigItem46 = Config.newItem(( "Winamp\ Modern"), ( "\{26E26319\-AECA\-4433\-B8F1\-F4A5BF2A9ED5\}"));
  65. ConfigItem49 = Config.newItem(( "Drawers"), ( "\{C338B30F\-2A04\-4b10\-871F\-4E9D52D62806\}"));
  66. ConfigItem52 = Config.newItem(( "Menus"), ( "\{12ED320E\-6813\-45ac\-9F8E\-78EE5B2B5F6D\}"));
  67. ConfigItem55 = Config.newItem(( "Main\ Windowshade\ Mode"), ( "\{58F07E21\-AE96\-4899\-B7BC\-3640B40029FB\}"));
  68. ConfigItem58 = Config.newItem(( "Vis\ Buttons"), ( "\{D70E3ABF\-D2FF\-4b82\-9A70\-4B5DF1A5D942\}"));
  69. ConfigItem61 = Config.newItem(( "Notifications"), ( "\{1AB968B3\-8687\-4a35\-BA70\-FCF6D92FB57F\}"));
  70. ConfigItem64 = Config.newItem(( "Songticker"), ( "\{7061FDE0\-0E12\-11D8\-BB41\-0050DA442EF3\}"));
  71. ConfigItem67 = Config.newItem(( "Hidden"), ( "\{E9C2D926\-53CA\-400f\-9A4D\-85E31755A4CF\}"));
  72. ConfigItem69 = Config.getItem(( "\{1828D28F\-78DD\-4647\-8532\-EBA504B8FC04\}"));
  73. ConfigItem71 = Config.getItem(( "\{6559CA61\-7EB2\-4415\-A8A9\-A2AEEF762B7F\}"));
  74. ConfigAttribute72 = ConfigItem69.newAttribute(( "Winamp\ Modern"), ( ""));
  75. ConfigAttribute72.setData(( "\{26E26319\-AECA\-4433\-B8F1\-F4A5BF2A9ED5\}"));
  76. ConfigAttribute73 = ConfigItem46.newAttribute(( "Drawers"), ( ""));
  77. ConfigAttribute73.setData(( "\{C338B30F\-2A04\-4b10\-871F\-4E9D52D62806\}"));
  78. ConfigAttribute74 = ConfigItem46.newAttribute(( "Menus"), ( ""));
  79. ConfigAttribute74.setData(( "\{12ED320E\-6813\-45ac\-9F8E\-78EE5B2B5F6D\}"));
  80. ConfigAttribute75 = ConfigItem46.newAttribute(( "Main\ Windowshade\ Mode"), ( ""));
  81. ConfigAttribute75.setData(( "\{58F07E21\-AE96\-4899\-B7BC\-3640B40029FB\}"));
  82. ConfigAttribute77 = ConfigItem46.newAttribute(( "Vis\ Shortcut\ Button"), ( ""));
  83. ConfigAttribute77.setData(( "\{D70E3ABF\-D2FF\-4b82\-9A70\-4B5DF1A5D942\}"));
  84. ConfigAttribute78 = ConfigItem46.newAttribute(( "Notifications"), ( ""));
  85. ConfigAttribute78.setData(( "\{1AB968B3\-8687\-4a35\-BA70\-FCF6D92FB57F\}"));
  86. ConfigAttribute79 = ConfigItem46.newAttribute(( "Songticker"), ( ""));
  87. ConfigAttribute79.setData(( "\{7061FDE0\-0E12\-11D8\-BB41\-0050DA442EF3\}"));
  88. ConfigAttribute17 = ConfigItem49.newAttribute(( "Animate\ Video\/Vis\ Drawer\ \(disabled\ if\ opacity\ \<\ 100\%\)"), ( "0"));
  89. ConfigAttribute18 = ConfigItem49.newAttribute(( "Animate\ Config\ Drawer"), ( "0"));
  90. ConfigAttribute84 = ConfigItem49.newAttribute(( "sep1"), ( ""));
  91. ConfigAttribute84.setData(( "\-"));
  92. ConfigAttribute21 = ConfigItem49.newAttribute(( "Open\ Video\/Vis\ from\ the\ top"), ( "0"));
  93. ConfigAttribute22 = ConfigItem49.newAttribute(( "Open\ Video\/Vis\ from\ the\ bottom"), ( "1"));
  94. ConfigAttribute23 = ConfigItem49.newAttribute(( "Bypass\ setting\ to\ keep\ in\ screen"), ( "1"));
  95. if(( ConfigAttribute21.getData() == ( "1"))) {
  96. ConfigAttribute21.onDataChanged();
  97. } else {
  98. ConfigAttribute22.onDataChanged();
  99. }
  100. ConfigAttribute25 = ConfigItem52.newAttribute(( "Show\ Menus\ in\ Main\ Window"), ( "1"));
  101. ConfigAttribute26 = ConfigItem52.newAttribute(( "Show\ Menus\ in\ Playlist\ Editor"), ( "1"));
  102. ConfigAttribute27 = ConfigItem52.newAttribute(( "Show\ Menus\ in\ Media\ Library"), ( "1"));
  103. ConfigAttribute84 = ConfigItem46.newAttribute(( "sep1"), ( ""));
  104. ConfigAttribute84.setData(( "\-"));
  105. ConfigAttribute19 = ConfigItem46.newAttribute(( "Detach\ Vis\ Window"), ( "0"));
  106. ConfigAttribute20 = ConfigItem46.newAttribute(( "Detach\ Video\ Window"), ( "0"));
  107. ConfigAttribute24 = ConfigItem71.newAttribute(( "Equalizer\ Alt\+G"), ( "0"));
  108. ConfigAttribute84 = ConfigItem46.newAttribute(( "sep2"), ( ""));
  109. ConfigAttribute84.setData(( "\-"));
  110. ConfigAttribute31 = ConfigItem46.newAttribute(( "Enable\ Beat\ Visualization"), ( "1"));
  111. ConfigAttribute28 = ConfigItem55.newAttribute(( "Link\ Position\ and\ Width"), ( "1"));
  112. ConfigAttribute29 = ConfigItem55.newAttribute(( "Link\ Position\,\ Unlink\ Width"), ( "0"));
  113. ConfigAttribute30 = ConfigItem55.newAttribute(( "Unlink\ Position\ and\ Width"), ( "0"));
  114. ConfigAttribute33 = ConfigItem58.newAttribute(( "Open\ Context\ Menu"), ( "1"));
  115. ConfigAttribute32 = ConfigItem58.newAttribute(( "Open\ Configuration"), ( "0"));
  116. ConfigAttribute36 = ConfigItem61.newAttribute(( "Show\ always"), ( "0"));
  117. ConfigAttribute35 = ConfigItem61.newAttribute(( "Show\ with\ windowshade\ and\ when\ minimized"), ( "0"));
  118. ConfigAttribute34 = ConfigItem61.newAttribute(( "Show\ only\ when\ minimized"), ( "0"));
  119. ConfigAttribute37 = ConfigItem61.newAttribute(( "Never\ show"), ( "1"));
  120. ConfigAttribute84 = ConfigItem61.newAttribute(( "sep1"), ( ""));
  121. ConfigAttribute84.setData(( "\-"));
  122. ConfigAttribute41 = ConfigItem61.newAttribute(( "Disable\ in\ fullscreen"), ( "1"));
  123. ConfigAttribute38 = ConfigItem67.newAttribute(( "Notifications\ fade\ in\ time"), ( "1000"));
  124. ConfigAttribute39 = ConfigItem67.newAttribute(( "Notifications\ fade\ out\ time"), ( "5000"));
  125. ConfigAttribute40 = ConfigItem67.newAttribute(( "Notifications\ display\ time"), ( "2000"));
  126. ConfigAttribute42 = ConfigItem64.newAttribute(( "Enable\ Songticker\ scrolling"), ( "1"));
  127. ConfigAttribute43 = ConfigItem64.newAttribute(( "Disable\ Songticker\ scrolling"), ( "0"));
  128. return Null;
  129. }
  130.  
  131. System.onScriptLoaded()
  132. {
  133. func242();
  134. Group116 = System.getScriptGroup();
  135. Text122 = Group116.findObject(( "Songticker"));
  136. Timer121 = ( new Timer);
  137. Timer121.setDelay(1000);
  138. ToggleButton118 = Group116.findObject(( "Repeat"));
  139. ToggleButton117 = Group116.findObject(( "Shuffle"));
  140. ToggleButton120 = Group116.findObject(( "RepeatDisplay"));
  141. ToggleButton119 = Group116.findObject(( "ShuffleDisplay"));
  142. Slider123 = Group116.findObject(( "Balance"));
  143. func2907();
  144. return Null;
  145. }
  146.  
  147. Slider123.onSetPosition(int newpos)
  148. {
  149. String String132;
  150. String132 = ( "Balance\:");
  151. if(( newpos == 127)) {
  152. String132 = ( String132 + ( "Center"));
  153. }
  154. if(( newpos > 127)) {
  155. String132 = ( String132 + ( ( ( "Left\ ") + System.integerToString(( 100 - ( ( newpos / 127) * 100)))) + ( "\%")));
  156. }
  157. if(( newpos < 127)) {
  158. String132 = ( String132 + ( ( ( "Right\ ") + System.integerToString(( ( ( newpos - 127) / 127) * 100))) + ( "\%")));
  159. }
  160. Timer121.start();
  161. Text122.setText(String132);
  162. return Null;
  163. }
  164.  
  165. Timer121.onTimer()
  166. {
  167. Text122.setText(( ""));
  168. Timer121.stop();
  169. return Null;
  170. }
  171.  
  172. System.onScriptUnloading()
  173. {
  174. delete Timer121;
  175. return Null;
  176. }
  177.  
  178. ToggleButton118.onToggle(Boolean onoff)
  179. {
  180. Int Int140;
  181. Timer121.start();
  182. Int140 = ToggleButton118.getCurCfgVal();
  183. if(( Int140 == 0)) {
  184. Text122.setText(( "Repeat\:\ OFF"));
  185. } else {
  186. if(( Int140 < 0)) {
  187. Text122.setText(( "Repeat\:\ ALL"));
  188. } else {
  189. if(( Int140 > 0)) {
  190. Text122.setText(( "Repeat\:\ TRACK"));
  191. }
  192. }
  193. }
  194. return Null;
  195. }
  196.  
  197. ToggleButton117.onToggle(Boolean onoff)
  198. {
  199. Timer121.start();
  200. if(onoff) {
  201. Text122.setText(( "Playlist\ Shuffling\:\ ON"));
  202. } else {
  203. Text122.setText(( "Playlist\ Shuffling\:\ OFF"));
  204. }
  205. return Null;
  206. }
  207.  
  208. ToggleButton120.onToggle(Boolean onoff)
  209. {
  210. Int Int148;
  211. Timer121.start();
  212. Int148 = ToggleButton120.getCurCfgVal();
  213. if(( Int148 == 0)) {
  214. Text122.setText(( "Repeat\:\ OFF"));
  215. } else {
  216. if(( Int148 < 0)) {
  217. Text122.setText(( "Repeat\:\ ALL"));
  218. } else {
  219. if(( Int148 > 0)) {
  220. Text122.setText(( "Repeat\:\ TRACK"));
  221. }
  222. }
  223. }
  224. return Null;
  225. }
  226.  
  227. ToggleButton119.onToggle(Boolean onoff)
  228. {
  229. Timer121.start();
  230. if(onoff) {
  231. Text122.setText(( "Playlist\ Shuffling\:\ ON"));
  232. } else {
  233. Text122.setText(( "Playlist\ Shuffling\:\ OFF"));
  234. }
  235. return Null;
  236. }
  237.  
  238. ConfigAttribute42.onDataChanged()
  239. {
  240. func2907();
  241. return Null;
  242. }
  243.  
  244. func2907()
  245. {
  246. if(( ConfigAttribute42.getData() == ( "1"))) {
  247. Text122.setXmlParam(( "ticker"), ( "1"));
  248. } else {
  249. Text122.setXmlParam(( "ticker"), ( "0"));
  250. }
  251. return Null;
  252. }
  253.  
  254.  
  255.